<?php

class PaymentModel extends Model{

	public function get_payment_list(){
		$sql	= 	"select pay_id,pay_code,pay_name,pay_desc from ybr_payment where pay_id in ('4','5','6') and enabled = 1";
		return M()->query($sql);
	}
	
	public function get_payment_byid($pay_id){
		$sql	=	"select pay_id,pay_code,pay_name,enabled from ybr_payment where pay_id = '{$pay_id}' limit 1";
		$datas 	=	M()->query($sql);
		return empty($datas) ? array() : $datas[0];
	}
}























